package com.pj.thread;

import java.util.HashMap;

/**
 * @author 王存露
 * @date 2021/2/27
 */
public class TestThread implements Runnable {
    public HashMap<String, String> getHashMap() {
        return hashMap;
    }

    public TestThread() {
    }

    public void setHashMap(HashMap<String, String> hashMap) {
        this.hashMap = hashMap;
    }

    public TestThread(HashMap<String, String> hashMap) {
        this.hashMap = hashMap;
    }

    private HashMap<String, String> hashMap;

    @Override
    public void run() {
        System.out.println("start tread name : " + Thread.currentThread().getName());
//        hashMap.put(Thread.currentThread().getName(), Thread.currentThread().getName());
//        System.out.println(Thread.currentThread().getName() + hashMap);
        System.out.println("end tread name : " + Thread.currentThread().getName());
    }
}
